/*!
 * 域名搜索已经完成
 * v 1.0.0
 * Copyright © 2015 - Blue Shark. All Rights Reserved  
 * by: 酱油鲜 (871839012@qq.com)
 * since: 2015‎年‎8月‎20日  
 * 
 */




$(document).ready(function() {
	/**
	 * 提交cookie 
	 * 请求加载所有任务未完成列表
	 * 返回数据有 任务id  任务名称 
	 */
	var color=['#6A00FF','#16499A','#60A917','#DC4FAD','#FA6800','#00AFF0','#16499A','#CE352C','#128023','#0099FF','#339999','#CC3366','#000000'];
	
	$.each($(".tile"), function(){
        var tile = $(this);
        var colors=color[Math.floor(Math.random()*color.length)];
        setTimeout(function(){
            tile.css({
                opacity: 1,
                "-webkit-transform": "scale(1)",
                "transform": "scale(1)",
                "-webkit-transition": ".3s",
                "transition": ".3s",
                'background-color':colors
            });
        }, Math.floor(Math.random()*500));
    });
	$(".icon-trash").click(function(e){
		$(this).closest(".tile").fadeOut(600,function(){
			$(this).remove();
		});
	});
	
});